<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3-17 render</title>
</head>
<body>
<div id="app">
    <test-component>success drawing</test-component>
</div>
<script src="./js/vue.js"></script>
<script>
    Vue.component('test-component',{
        render(createElement){
            return createElement('p',{
                style:{
                    color:'red',
                    fontSize:'16px',
                    backgroundColor:"#eee"
                }
            },
            this.$slots.default)
        }
    })
    var vm=new Vue({el:"#app"})
</script>
</body>
</html>